#ifndef RESOURCEMANAGER_H
#define RESOURCEMANAGER_H

#include "qobject.h"
#include "qurl.h"
#include "qapplication.h"
#include "networkreply.h"

class ResourceManager: public QObject {

	Q_OBJECT

private:

	QUrl documentRoot;
	QApplication* application;
	void requestDir(QString dirPath, NetworkReply* reply);
	void requestFile(QString filePath, QHash<QString, QString>params, NetworkReply* reply);
	void requestIcon(QString filePath, int iconSize, NetworkReply* reply);
	QImage brightness(QImage image, int bgt);

private slots:

	 NetworkReply *createRequest(QUrl requestUrl);

public:

	explicit ResourceManager(QApplication* application);

};

#endif // RESOURCEMANAGER_H
